package com.device.grant.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.device.grant.dao.ApparatusGroupDao;
import com.device.grant.pojo.ApparatusGroup;
import com.device.grant.service.ApparatusGroupService;
import com.device.grant.utils.ColumnCompator;

@Service("apparatusGroupService")
public class ApparatusGroupServiceImpl implements ApparatusGroupService {

	@Autowired
	private ApparatusGroupDao	apparatusGroupDao;

	public boolean insertApparatusGroup(ApparatusGroup apparatusGroup) {
		return apparatusGroupDao.insertApparatusGroup(apparatusGroup);
	}

	public List<ApparatusGroup> getApparatusGroup(Integer page, Integer rows, Map<String, Object> params, List<String> blearParams,
			Map<String, ColumnCompator> compators, String orderBy) {
		return apparatusGroupDao.getApparatusGroup(page, rows, params, blearParams, compators, orderBy);
	}

	public Integer countApparatusGroup(Map<String, Object> conditions, List<String> blearParams, Map<String, ColumnCompator> compators) {
		return apparatusGroupDao.countApparatusGroup(conditions, blearParams, compators);
	}

	public boolean updateApparatusGroup(Map<String, Object> changeInfos, Map<String, Object> conditions) {
		return apparatusGroupDao.updateApparatusGroup(changeInfos, conditions);
	}

	public List<ApparatusGroup> queryApparatusGroup() {
		return apparatusGroupDao.queryApparatusGroup();
	}
}
